#include <iostream>

using namespace std;

template <typename T>
inline T const& Max(T const& a,T const& b)
{
    return a < b ? b : a;
}

int main(void)
{
    int i = 39;
    int j = 20;
    cout << "Max(i, j): " << Max(i, j) << endl;

    string s1 = "Hello";
    string s2 = "World";
    cout << "Max(s1,s2): " << Max(s1, s2) << endl;

    return 0;
}